const connect = require('connect');
const bodyParser = require('body-parser');

connect()
  .use(bodyParser())
  .use(function (req, res) {
    console.log(req.body);
    res.end(`Registered new user: ${req.body.username}`);
  })
  .listen(3000);
